package redteam.grabthegreen;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;

public class GameRoomWindow extends Activity {
	@Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.gameroomwindow);

        TextView gameNameTextView = (TextView)findViewById(R.id.gameroomgamenametextview);
		gameNameTextView.setText("Game Name:");

		TextView gameTypeTextView = (TextView)findViewById(R.id.gameroomgamenametextview);
		gameNameTextView.setText("Game Type: Free For All");

        String[] playerSlotsNames = {"","","",""};
		ListView playerSlotsListView = (ListView)findViewById(R.id.playerslotslist);
		playerSlotsListView.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, playerSlotsNames));

        Button startGameButton = (Button)findViewById(R.id.startgamebutton);
        startGameButton.setText("Start Game");
        startGameButton.setOnClickListener(new Button.OnClickListener() {
        	public void onClick(View v) {
        		//startSubActivity(new Intent(GrabTheGreen.this, MainWindow.class), 0);
        	}
        });
        Button cancelGameButton = (Button)findViewById(R.id.cancelgamebutton);
        cancelGameButton.setText("Cancel");
        cancelGameButton.setOnClickListener(new Button.OnClickListener() {
        	public void onClick(View v) {
        		//startSubActivity(new Intent(GrabTheGreen.this, MainWindow.class), 0);
        	}
        });
    }
}
